/*
 * @Description: 数据看板api文件
 * @FilePath: \hk-computerRoom-Security\src\api\dataBoard\index.ts
 * @Date: 2024-01-19 18:16:23
 * @LastEditTime: 2024-01-19 18:18:29
 */

import axiosRequest from '/@/utils/request';
/**
 * @method  queryDevicePropertyInfoTileList 查询设备数据
 * @method  queryDevicePropertyHistoryChartList 查询设备当天历史数据图表
 * @method  queryDeviceCount 查询设备数量
 */
export function useDataBoardApi() {
  return {
    queryDevicePropertyInfoTileList: async (params: object) => {
      return await axiosRequest({
        url: '/api/dataBoard/queryDevicePropertyInfoTileList',
        method: 'POST',
        data: params,
      });
    },
    queryDevicePropertyHistoryChartList: async (params: object) => {
      return await axiosRequest({
        url: '/api/dataBoard/queryDevicePropertyHistoryChartList',
        method: 'POST',
        data: params,
      });
    },
    queryDeviceCount: async (params: object) => {
      return await axiosRequest({
        url: '/api/dataBoard/queryDeviceCount',
        method: 'POST',
        data: params,
      });
    },
  }
}
